package com.codebuffer.nowcoder;

public class Mirror {
    public TreeNode Mirror (TreeNode pRoot) {
        if(null == pRoot){
            return pRoot;
        }
        Mirror(pRoot.left);
        Mirror(pRoot.right);
        TreeNode left = pRoot.left;
        pRoot.left = pRoot.right;
        pRoot.right = left;
        return pRoot;
    }
}
